package com.dy.security.controller;

import com.dy.sucetity.utils.ApiResousUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName:
 * @Author: 仄言in
 * @Desctiption: (描述)
 * @Date: 2022/1/20 14:17
 * @Version 1.0 (版本)
 */
@RestController
@RequestMapping("/test")
@Slf4j
@Api(tags = "测试")
public class TestController {

    @ApiOperation("hello")
    @GetMapping("/hello")
    public ApiResousUtil<String> hello(){
        log.info("----hello----");
        String hello="hello";
        return ApiResousUtil.ok(hello);
    }
}
